<!doctype html>
<html class="mumu-pc w1200">
<head>
<include file="public:head" />
</head>
<body>
<include file="public:header" />
<include file="public:lunbo" /> 
<style>.top_bar{width:1200px;margin:0 auto;}.banner_arrow .arrow_prev{left:0px;}.banner_arrow .arrow_next{right:240px;}.mainNav li a,.state-show .normal-a{font-weight:normal;}.top_wrap .banner_l{right:0;}.top_wrap .banner_r{height:241px;top:-241px;width:249px;}.top_wrap .banner_r dl{width:250px;height:241px;}.top_wrap .banner_r dl dd{width:124px;height:120px;}.top_wrap .banner_r dl dd img{width:124px;}.top_wrap .round .adType a.current{background:transparent;border:3px solid #fff;}.jiu-nav-main{display:none;}.fixed{display:block;}</style>
<div class="jiu-nav-main">
<div class="jiu-nav w1100">
<div class="nav-item fl">
<div class="item-list">
<ul>
<li><a rel="nofollow" href="{:C('itak_site_url')}" class="active">全部</a></li>
				<volist name="cate_data" id="bcate">	
				<if condition="$bcate['spid'] eq 0">
				<li><a <if condition="$spid eq $bcate['id']">class="active"</if> href="{:U('index/cate', array('cid'=>$bcate['id']))}" title="{$bcate.name}">{$bcate.name}</a></li>	
				</if>
				</volist>
</div>
</div>
<div class="nav-other fl">
<ul>
<li><a href="{:U('xinpin/index')}" ><i class="today"></i><span>今日新品</span></a></li>
</ul>
</div>
<div class="n_h">
<a href="{:U('index/index')}"  class=" <if condition="$index_info['sort'] eq 'default'"> active </if> ">默认</a>
<a href="{:U('index/index',array('sort'=>'new'))}" class=" <if condition="$index_info['sort'] eq 'new'"> active </if> ">最新</a>
<a href="{:U('index/index',array('sort'=>'hot'))}" class=" <if condition="$index_info['sort'] eq 'hot'"> active </if> ">销量</a>
</div>
</div>
</div>
</div>
<div class="w1100 new-users clear">
<ul class="fr">
<li><i class="f"></i><span>特卖1折起</span></li>
<li><i class="s"></i><span>全场9.9元包邮</span></li>
<li><i class="t"></i><span>100%验货质检</span></li>
</ul>
<div class="update-time fl">
<div class="today">
<i class="icon_new"></i>今日新品<span>每天10点新品特卖</span>
</div>
</div>
</div>
<include file="public:bar" />
<link rel=stylesheet type=text/css href="__STATIC__/taoyouhui/itaoke/css/good.css"/>
<include file="public:itemlist" />

<script type="text/javascript">
$(function() {
    var $navFun = function() {
        var st = $(document).scrollTop(), 
            headh = $("div.header").height()+$("div#toolbar").height(); 
            $nav_classify = $("div.jiu-nav-main");

        if(st > headh){
            $nav_classify.addClass("fixed");
        } else {
            $nav_classify.removeClass("fixed");
        }
    };

    var F_nav_scroll = function () {
        if(navigator.userAgent.indexOf('iPad') > -1){
            return false;
        }      
        if (!window.XMLHttpRequest) {
           return;          
        }else{
            //默认执行一次
            $navFun();
            $(window).bind("scroll", $navFun);
        }
    }
    F_nav_scroll();

});
</script>
 <script>

	function getTime(){
          $(".endtime").each(function () {
		var end = $(this).attr('data-time');
		var style = 2;
		var id = $(this).attr('data-id');
		today=new Date(); 
		timeold=((end)*1000-today.getTime()); 
		if (timeold < 0) {
			$("#end_date_"+id).html("已结束!");
			return;
		} 
		sectimeold=timeold/1000;
		secondsold=Math.floor(sectimeold); 
		msPerDay=24*60*60*1000;
		e_daysold=timeold/msPerDay;
		daysold=Math.floor(e_daysold); 
		e_hrsold=(e_daysold-daysold)*24;
		hrsold=Math.floor(e_hrsold); 
		e_minsold=(e_hrsold-hrsold)*60;
		minsold=Math.floor((e_hrsold-hrsold)*60); 
		e_seconds = (e_minsold-minsold)*60;
		seconds=Math.floor((e_minsold-minsold)*60); 
		ms = e_seconds-seconds;
		ms = new String(ms);
		ms1 = ms.substr(2,1);
		ms2 = ms.substr(2,1);
		hrsold1=daysold*24+hrsold;
		if(style == 1){
			$("#end_date_"+id).html((hrsold1<10?'0'+hrsold1:hrsold1)+"小时"+(minsold<10?'0'+minsold:minsold)+"分"+(seconds<10?'0'+seconds:seconds)+"秒");
		}else if(style == 2){
			if(daysold>0){
				$("#end_date_"+id).html("<i>"+daysold+"</i>天<i>"+(hrsold<10?'0'+hrsold:hrsold)+"</i>时<i>"+(minsold<10?'0'+minsold:minsold)+"</i>分<i>"+(seconds<10?'0'+seconds:seconds)+"."+ms2+"</i>秒");
			}else{
				$("#end_date_"+id).html("<i>"+(hrsold<10?'0'+hrsold:hrsold)+"</i>时<i>"+(minsold<10?'0'+minsold:minsold)+"</i>分<i>"+(seconds<10?'0'+seconds:seconds)+"."+ms2+"</i>秒");
			}
		}else if(style == 3){
			$("#end_date_"+id).html((hrsold1<10?'0'+hrsold1:hrsold1)+"小时"+(minsold<10?'0'+minsold:minsold)+"分"+(seconds<10?'0'+seconds:seconds)+"."+ms1+"秒");
		}else if(style == 4){
			if(daysold>0){
				$("#end_date_"+id).html(daysold+"天"+(hrsold<10?'0'+hrsold:hrsold)+"时"+(minsold<10?'0'+minsold:minsold)+"分");
			}else{
				$("#end_date_"+id).html((hrsold1<10?'0'+hrsold1:hrsold1)+"小时"+(minsold<10?'0'+minsold:minsold)+"分");
			}
		}else{
			$("#end_date_"+id).html(daysold+"天"+(hrsold<10?'0'+hrsold:hrsold)+"小时"+(minsold<10?'0'+minsold:minsold)+"分"+(seconds<10?'0'+seconds:seconds)+"秒."+ms2);
		}
            });

        }
        setInterval("getTime()",100);
</script>
<include file="public:footer" />
</body>
</html>
